< previous page page_351 next page >

Page 351
12181-0351a.gif
Figure 13.5.
Custom Report buttons are displayed, enabling
you to create a report from scratch.
12181-0351b.gif
Figure 13.6.
Simple and complex calculations are built using the
Formula Editor dialog box.
The Formula Editor enables you to work with both formulas and functions. A formula is a set of instructions that calculate the information you can't directly receive from the database. If a database record has two fields, Unit Price and Quantity Sold, but you need the total sales price, you would have to multiply the two fields to calculate the total sales price. This process is accomplished by using a formula that you place in the report.
This type of formula is a simple formula, because it uses the standard arithmetic operators. However, not all the calculations you need are simple formulas. There will be times when you require complex calculations or manipulations of the database fields. If you want to display the average monthly sales for the previous year, rounded to the nearest unit, you need a mathematical formula. The functions required to perform these activities involve a fair amount of data manipulation. Whereas some of this can be done using only Crystal Reports operators, many of them can't be done without the use of functions.

 
< previous page page_351 next page >

If you like this book, buy it!